Skip to content

docs(telemetry): update the UpdateUserRole line numbers in the trace examples - #531

Merged
pdevito3 merged 1 commit into
mainfrom
docs-telemetry-line-numbers
Nov 15, 2026
Merged

pdevito3 merged 1 commit into
mainfrom
docs-telemetry-line-numbers

Conversation

@pdevito3

Copy link
Copy Markdown
Owner

Why

The UpdateUserRole trace examples in the telemetry docs give line numbers that no longer match the code. The handler now runs a find_tenant query and a tenant lock before the load, so the load query moved to line 39 and the log to line 79.

What changed

  • docs/backend/feature-telemetry.md: the load query is at line 39 (was 34), and the log CallSite is Handle@79 (was @71).
  • docs/telemetry.md: the exemplar example says line 39 (was 32).

Scope

  • The diagrams still leave out the find_tenant query. The line numbers will go stale again the next time someone edits the handler.

Verification

  • Checked against UpdateUserRole.cs on main. TagWithOperationCallSite("users.update_role.load") is on line 39, and _logger.Here().Information(...) is on line 79.

…examples

UpdateUserRole now runs a find_tenant query and a tenant lock before the load, so the load query moved to line 39 and the log to line 79. The trace examples in feature-telemetry.md and telemetry.md still gave lines 32, 34, and 71.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1de0b-c3f6-73e8-b942-e8f67411c76f
Co-authored-by: Amp <amp@ampcode.com>
@pdevito3
pdevito3 merged commit 527bae1 into main Nov 15, 2026
14 checks passed
@pdevito3
pdevito3 deleted the docs-telemetry-line-numbers branch November 15, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant